class GeAnWaitingDetailEntity {
  GeAnWaitingBeanInfo? bean;

  GeAnWaitingDetailEntity({this.bean});

  factory GeAnWaitingDetailEntity.fromJson(Map<String, dynamic> json) {
    return GeAnWaitingDetailEntity(
      bean: GeAnWaitingBeanInfo.fromJson(json['bean']),
    );
  }
}

class GeAnWaitingBeanInfo {
  String? deadline;
  String? elderName;
  List<GeAnWaitingRecordInfo>? records;
  List<GeAnWaitingRecordInfo>? executeHumanList;
  String? reason;
  // int id;
  // int bizType;
  // int bizId;
  // int resultMode; // == 0 时直接完成执行
  // int customerId;
  // String sexName;
  // String branchName;
  // String buildingNo;
  // String floorNo;
  // String roomNo;
  // String statusSecondName;
  // String nurseLevelName;
  GeAnWaitingBeanInfo({
    this.records,
    this.deadline,
    this.elderName,
    this.reason,
    this.executeHumanList,
  });

  factory GeAnWaitingBeanInfo.fromJson(Map<String, dynamic> json) {
    final originList = json['records'] as List?;
    List<GeAnWaitingRecordInfo> protocolList = (originList??[])
        .map((value) => GeAnWaitingRecordInfo.fromJson(value))
        .toList();

    final originList2 = json['executeHumanList'] as List?;
    List<GeAnWaitingRecordInfo> protocolList2 = (originList2??[])
        .map((value) => GeAnWaitingRecordInfo.fromJson(value))
        .toList();

    return GeAnWaitingBeanInfo(
      records: protocolList,
      executeHumanList: protocolList2,
      deadline: json['deadline'],
      elderName: json['elderName'],
      reason: json['reason'],
    );
  }
}

class GeAnWaitingRecordInfo {
  String? operator;
  int? id;
  // int unRead;
  // bool isSelected;

  // int overdueCount;
  // int launchType;
  String? remark;

  GeAnWaitingRecordInfo({
    this.operator,
    // this.launchType,
    // this.isSelected,
    this.id,
    this.remark,
    // this.overdueCount,
    // this.undoCount,
  });

  GeAnWaitingRecordInfo.fromJson(Map data) {
    operator = data['operator'];
    id = data['id'];
    // unRead = data['unRead'];
    // isSelected = data['isSelected'] = false;

    remark = data['remark'];
    // overdueCount = data['overdueCount'];
    // undoCount = data['undoCount'];
  }
}
